<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>打印测试</title>
    <style>
        * {
            font-size: 12px;

        }

        .print {
            width: 180px;

        }

        .box1 {
            border-bottom: 1px solid #000;
            margin-bottom: 10px;

        }

        .title,
        .row,
        .total {
            display: flex;
            justify-content: space-between;
        }

        .row {
            flex-direction: column;
        }



        /* .title span,
        .total span,
        .row span {
            margin-right: 10px;
        } */

        .row div {
            margin-left: 40px;
            display: flex;
            justify-content: space-between;
        }

        .row div span {
            text-align: center;
            display: inline-block;
        }

        /* .title span:last-child,
        .total span:last-child,
        .row span:last-child {
            margin-right: 0;
        } */

        .total {
            border-top: 1px dashed #000;
            margin-top: 10px;
            padding-top: 10px;
        }
    </style>
</head>

<body>
    <div class='print'>
        <div class='box1'>
            <h4>%s销售单</h4>
            <p>仓库：%s仓库</p>
            <p>结算账户：%s账户</p>
            <p>实收金额：%s</p>
            <p>制单人：%s</p>
            <p>日期：%s</p>
            <p>单号：%s</p>
            <p>客户：%s</p>
            <p>备注：%s</p>
        </div>

        <div class='title'>
            <span>商品</span>

            <span>数量</span>
            <span>原价</span>
            <span>折后价</span>
            <span>金额</span>


        </div>
        <div class='row'>
            <span>OM00003/毛呢大衣 白色35码</span>
            <div>

                <span>1</span>
                <span>200</span>
                <span>200</span>
                <span>200</span>
            </div>
        </div>
        <div class='row'>
            <span>OM00003/毛呢大衣 白色36码</span>
            <div>

                <span>1</span>
                <span>200</span>
                <span>200</span>
                <span>200</span>
            </div>
        </div>
        <div class='row'>
            <span>OM00003/毛呢大衣 红色35码</span>
            <div>
                <span>1</span>
                <span>200</span>
                <span>200</span>
                <span>200</span>
            </div>
        </div>
        <div class='total'>
            <span>合计：</span>
            <span>3</span>
            <!-- 占位符 -->
            <span style="visibility: hidden;">000</span>
            <span style="visibility: hidden;">000</span>
            <span>600</span>
        </div>

    </div>
</body>

</html>